Skip to content

Feature/quiz api#62

Merged
venisha-kalola merged 6 commits into
commitra:mainfrom
sneha31-debug:feature/quiz-api
Oct 15, 2025
Merged

Feature/quiz api#62
venisha-kalola merged 6 commits into
commitra:mainfrom
sneha31-debug:feature/quiz-api

Conversation

@sneha31-debug
Copy link
Copy Markdown
Contributor

Summary

This PR implements Issue #56 by replacing the static quiz questions with a dynamic fetch from the Open Trivia Database API.

Key changes:

Replaced the hardcoded data array in projects/quiz/main.js with questions fetched from https://opentdb.com/api.php?amount=5&type=multiple.

Maintains the timer for each question, score tracking, and question rendering logic.

Handles correct/wrong answers and timeout scenarios.

Minor updates to data/projects.json to register the quiz project.

Checklist

Linked issue (#56)

Ran locally without console errors

Focused scope (quiz API integration only)

Updated data/projects.json

Screenshots

Before: static questions with hardcoded array

Screenshot 2025-10-15 at 8 55 15 PM Screenshot 2025-10-15 at 8 55 11 PM Screenshot 2025-10-15 at 8 55 18 PM

After: dynamically loaded quiz questions from API
Screenshot 2025-10-15 at 8 42 35 PM
Screenshot 2025-10-15 at 8 48 28 PM
Screenshot 2025-10-15 at 8 48 31 PM
Screenshot 2025-10-15 at 8 48 35 PM
Screenshot 2025-10-15 at 8 48 39 PM
Screenshot 2025-10-15 at 8 48 42 PM

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 15, 2025

@sneha31-debug is attempting to deploy a commit to the hrishikesh-dalal's projects Team on Vercel.

A member of the Team first needs to authorize it.

@venisha-kalola venisha-kalola merged commit 66e7c73 into commitra:main Oct 15, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants